package com.wn.icloud.provider.demo.remote;

import com.wn.icloud.provider.demo.dto.DemoFeignDTO;
import com.wn.icloud.provider.demo.remote.fallback.DemoFeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "icloud-provider-demo", contextId = "demo", fallback = DemoFeignFallBack.class)
public interface DemoFeignApi  {


    @GetMapping("/api/getDemo")
    DemoFeignDTO getDemos(@RequestParam("id") Integer id);


}
